package br.ucb.musicbay.musica;

import java.util.List;

import br.ucb.musicbay.util.DAOFactory;

public class MusicaBO {
	MusicaInterfaceDao musicaHibernate;
	
	public MusicaBO(){
		musicaHibernate = DAOFactory.createMusicaDao();
	}
	
	public boolean update(Musica musica){
		return this.musicaHibernate.update(musica);
	}

	public boolean save(Musica musica) {
		return this.musicaHibernate.save(musica);
	}

	public boolean delete(Musica[] musica) {
		return this.musicaHibernate.delete(musica);
	}
	
	public List<Musica> recoverAll(){
		return this.musicaHibernate.recoverAll();
	}

	public Musica recoverById(Integer id) {
		return this.musicaHibernate.recoverById(id);
	}

}
